﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Geral.Master" Inherits="System.Web.Mvc.ViewPage<IList<SiteAgle.Models.Tarefa>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Projeto
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
		<h1>Gestor Agile - Tarefa (Lista)</h1>
  <div class="botoes">
			<a href="/Tarefa/novo/<%= (int)ViewData["SprintID"]%>" title="Adicionar Novo">
				<div class="botoesBox">
					<span class="novo"></span>
				</div>
			</a>
		</div>
         
		<div id="content">
				<table class="table">
					<thead>
						<tr>
							<th>Código</th>
                            <th>Descricao</th>
							<th>Projeto</th>
                            <th>Atribuido à:</th>
							<th>Status</th>
                            <th>Tempo Estimado</th>
							<th>Criacao</th>
                            <th>Inicio</th>
							<th>Fim</th>							
							<td style="width:90px"></td>
						</tr>
					</thead>

					<tbody>
                      <% foreach (SiteAgle.Models.Tarefa item in Model)
                         { %>
						<tr>
							<td><%:item.Id %></td>
							<td><%:item.Descricao %></td>
							<td><%:item.Sprint.Projeto.Nome %></td>
                            <td><%:item.IdUsuario!=null?item.Usuario.Nome:""%></td>
						    <td><%:item.StatusTarefas.Descricao %></td>	                              							
                            <td><%:item.TempoEstimado.ToString() %></td>							
                            <td><%:item.Criacao.ToString("dd/MM/yyyy")%></td>
							<td><%:item.Inicio !=null?item.Inicio.Value.ToString("dd/MM/yyyy"):""     %></td>                
							<td><%:item.Fim !=null?item.Fim.Value.ToString("dd/MM/yyyy"):""     %></td>                
							<td>
                                <a href="/tarefa/excluir/<%= item.Id %>" title="Excluir" class="remove-list-cadastro"><span class="list-remover"></span></a>
                   			
								<a href="/tarefa/editar/<%:item.Id %>" title="Editar"><span class="list-editar"></span></a>
							</td>
						</tr>
                        <%} %>
					</tbody>
				</table>
		</div><!-- CONTENT -->

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentHead" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ContentFooter" runat="server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="ContentScripts" runat="server">
</asp:Content>
